/** When your routing table is too long, you can split it into small modules**/

import Layout from '@/layout'

const usersRouter = {
  path: '/user',
  component: Layout,
  redirect: 'noRedirect',
  name: 'User',
  meta: {
    title: '员工管理',
    icon: 'user',
    roles: ['admin']
  },
  alwaysShow: true,
  children: [{
    path: 'list',
    component: () => import('@/views/users/index'),
    name: 'UserList',
    meta: {
      title: '员工列表',
      noCache: false,
      roles: ['admin']
    }
  }]
}

export default usersRouter
